package com.soundai.skill.helloworld.test;

import org.omg.CORBA.PUBLIC_MEMBER;
import redis.clients.jedis.Jedis;

public class RedisJava {

    public  static  void main(String[] args){

        //连接本地的 Redis 服务
        Jedis jedis = new Jedis("localhost");
        //jedis.set("name","yanpeixin");
        //jedis.set("pwd","000000");
        System.out.println("连接成功");
        //查看服务是否运行
        System.out.println("服务正在运行: "+jedis.ping());

    }




}
